package com.sxx.beautifulcity.application;

import android.app.Application;
import android.content.Context;

import com.baidu.mapapi.SDKInitializer;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;

import cn.jpush.android.api.JPushInterface;

/**
 * Created by dllo on 15/10/21.
 */
public class ProjectApplication extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();

        JPushInterface.setDebugMode(true);    // 设置开启日志,发布时请关闭日志
        JPushInterface.init(this);
        Fresco.initialize(this);
        SDKInitializer.initialize(getApplicationContext());
        context = this;
    }

    public static Context getContext() {
        return context;
    }

    @Override
    public Context getApplicationContext() {
        return super.getApplicationContext();
    }
}
